<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page contentType="text/html;charset=UTF-8"%>

<%@page import="com.wzw.tcjh.Login"%><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>汇丰晋信天才儿童的添财计划—天才基因早发现</title>
<link href="css/main.css" media="screen" rel="stylesheet" type="text/css" />
</head>
<% 
	String name = request.getParameter("name");
	String pwd = request.getParameter("pwd");
	String projectName = request.getParameter("projectName");
	
	if(name==null||pwd==null||projectName==null){
		response.sendRedirect("login.jsp");
		return;
	}
	boolean succ = false;
	if(Login.doLogin(name, pwd)){
		succ = true;
		session.setAttribute("user", name.trim());
		session.setAttribute("projectCode", projectName);
	}
%>
<script type="text/javascript">
<!--
	<%if(succ){%>
		parent.location = 'statistics.jsp';
	<%}else{%>
		parent.alert('请输入正确的用户名/密码!');
	<%}%>
	
//-->
</script>
</html>